<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
class GoodsCateController extends Controller
{
    //
    public function index()
    {	
    	$data = DB::select("select * from goodscate order by id desc");
    	dd($data->('id'));
    	// $data = DB::table('goodscate')->where('cid','0')->get();
    	// $data2 = DB::table('goodscate')->where('cid','id')->get();
    	
    	return view('admin.goods.userAdd',compact('data'));
    }
}
